package cn.lingyangwl.agile.food.model.rqrs.sku;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 库存单据明细
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class SkuInOutDetailBase {
 	@ApiModelProperty(value = "库存单据记录id")
	private Long documentId;
	
     @NotNull(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "sku id")
	private Long skuId;
	
 	@ApiModelProperty(value = "改变数量, 负数表示出库")
	private Integer changeCount;
	
     @NotNull(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "商品id")
	private Long goodsId;
	
     @NotNull(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "成本单价")
	private BigDecimal costPrice;
	
 	@ApiModelProperty(value = "总成本价")
	private BigDecimal totalCostPrice;
	
 	@ApiModelProperty(value = "备注")
	private String remark;
}
